package leet.ku._217;

import java.util.HashSet;
import java.util.Set;

public class Solution {
	
    public boolean containsDuplicate(int[] nums) {
        Set<Integer> mark = new HashSet<Integer>();
        for (int i : nums)
        	if (!mark.add(i))
        		return true;
        return false;
    }
    
}